package abcy.cloud.authenticationserver.mappers;

import abcy.cloud.authenticationserver.dto.req.SysClientSelectReq;
import abcy.cloud.authenticationserver.dto.resp.SysClientSelectResp;
import abcy.cloud.authenticationserver.entities.OauthClientDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface OauthClientDetailsMapper extends BaseMapper<OauthClientDetails> {

    List<SysClientSelectResp> getClientForPage(@Param("req") SysClientSelectReq sysClientSelectReq);

    void deleteByClientId(@Param("clientId") String clientId);
}